﻿using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;
using System.IO;

namespace NetWork.Packets
{
	public class Packet
	{
		public int nOpCode;
		public object kBody;

		public Packet (int code, object buff)
		{
			nOpCode = code;
			kBody = buff;
		}
        
		public ServerType socketServerType;

		public Packet (int code, object buff, ServerType type)
		{
			nOpCode = code;
			kBody = buff;
			socketServerType = type;
		}
	}

    public class ErrorPacket
    {
        public int errorCode;
        public string errorMessage;
    }
}

